package com.desiy.dao;

import com.desiy.pojo.entity.Books;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BooksDao {
    Books queryById(@Param("bookid") Integer id);
    List<Books> queryAll();
    int insert(Books books);
    int update(Books books);
    int deleteById(@Param("bookid") Integer id);
    Books queryByName(@Param("bookname") String name);
}